package com.cac.demo.newCode.sorting.controller;

import com.cac.demo.newCode.sorting.dto.SupportingTasksDTO;
import com.cac.demo.newCode.sorting.service.SupportingTaskService;
import com.cac.demo.util.adapter.ResponseMsg;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RequestMapping("/supportingTask")
@RestController
@Slf4j
@Api(tags = "配套任务")
public class SupportingTasksController {
    @Resource
    private SupportingTaskService supportingTaskService;

    @PostMapping("/PackagePage")
    @ApiOperation(value = "工作包分拣任务列表")
    public ResponseMsg<Object> PackagePage(@RequestBody SupportingTasksDTO supportingTasksDTO){
        return supportingTaskService.PackagePage(supportingTasksDTO);
    }
    @PostMapping("/AOPage")
    @ApiOperation(value = "AO分拣任务列表")
    public ResponseMsg<Object> AOPage(@RequestBody SupportingTasksDTO supportingTasksDTO){
        return supportingTaskService.AOPage(supportingTasksDTO);
    }
    @PostMapping("/AOMaterialPage")
    @ApiOperation(value = "AO物料配套清单")
    public ResponseMsg<Object> AOMaterialPage(@RequestBody SupportingTasksDTO supportingTasksDTO){
        return supportingTaskService.AOMaterialPage(supportingTasksDTO);
    }

}
